<?php

namespace app\admin\model;


class Userfavorite extends Base
{
    // 表名
    protected $name = 'pur_userfavorite';


    //产品
    public function material()
    {
        return $this->belongsTo("Material", 'fk_bdl_bd_material');
    }

    //库存
    public function inventory()
    {
        return $this->belongsTo("Inventory", 'fk_bdl_inventoryid');
    }
}
